package function;

public class Demo3 {

	public static void main(String[] args) {
		int s;
		s=fun(5);
		System.out.println(s);		
	}
	private static int fun(int n) {
		if(n<2) return 1;
		return n*fun(n-1);				 
	}

}
